package com.xebest.web.form;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;


/**
 * 商户入驻DTO
 *
 * @author shihui
 */
public class XeVenInfoForm implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 企业性质 1：公司企业 3：个体工商户 4:个人 9：其他性质
     */
    @NotNull(message = "请填写企业性质")
    private Integer venProperties;
    /**
     * 供应商名称
     */
    @NotNull(message = "请填写企业名称")
    @Size(min = 0, max = 40, message = "商品名称不能超过40个字")
    private String venName;
    /**
     * 营业执照号-aptitude表
     */
    private String businessNum;
    /**
     * 过期日期-aptitude表
     */
    private String gspEndDate;
    /**
     * 过期日期-aptitude表
     */
    private String productEndDate;
    /**
     * 营业执照过期日期-aptitude表
     */
    private String endDate;
    /**
     * 法人代表-aptitude表
     */
    @NotNull(message = "请填写法人代表")
    private String legalPerson;
    /**
     * 法人身份证号-aptitude表
     */
    @NotNull(message = "请填写法人身份证号")
    @Size(min = 0, max = 20, message = "请填写法人身份证号不能超过20个字")
    private String legalPersonNum;
    /**
     * 营业执照图片url-aptitude表
     */

    private String gspGmpPic;  // GSP/GMP证书
    private String operatingProductionPic;  // 药品经营/生产许可证

    private String businessPic;
    /**
     * 身份证正面图片url-aptitude表
     */
    private String idcardPic;
    /**
     * 身份证反面图片url-aptitude表
     */
    private String idcardBackPic;
    /**
     * 食品许可证图片url-aptitude表
     */
    private String foodLicensePic;
    /**
     * 企业类型 3：生产加工厂4：代理商 5：品牌商6：经销商7：进出口贸易8：协会合作社
     */
    @NotNull(message = "请填写企业类型")
    private Integer comType;
    /**
     * 主营类型（用逗号分割存储） 1肉禽蛋类 2海鲜水产 3水果蔬菜 4干调类 5蔬菜类 6	粮油副食 7酒水饮品 8 酒店用品 9进口食品
     */
    @NotNull(message = "请填传入主营类型id")
    private String businessType;
    /**
     * 主营类型（用逗号分割存储） 为平台一级分类name
     */
    @NotNull(message = "请填写主营类型")
    private String businessTypeName;
    /**
     * 企业所在地省id
     */
    @NotNull(message = "请选择企业所在地省")
    private Integer provinceId;
    /**
     * 企业所在地市id
     */
    @NotNull(message = "请选择企业所在地市")
    private Integer cityId;
    /**
     * 企业所在地详细地址
     */
    @NotNull(message = "请填写企业所在地详细地址")
    private String venAddr;
    /**
     * 商品销售区域id
     */
    @NotNull(message = "请填写商品销售区域")
    private List<Integer> areaId;
    /**
     * 支持付款方式
     */
    @NotNull(message = "请选择支持付款方式")
    private Integer payType;
    /**
     * 店铺名称
     */
    @NotNull(message = "请填写店铺名称")
    private String shopName;
    /**
     * 联系人名称
     */
    @NotNull(message = "请填写联系人名称")
    private String userName;
    /**
     * 联系人手机号
     */
    @NotNull(message = "请填写联系人手机号")
    private String userPhone;
    /**
     * 当区域为全国时 此字段为true
     */
    private boolean areaFlag;
    /**
     * 联系人邮箱
     */
    private String userEmail;
    /**
     * 版本号
     */
    private Integer version;

    private Integer idcardApId;  // 身份证资质apid
    private Integer idcardVer;  // 身份证资质version
    private Integer busApId;    // 营业执照资质apid
    private Integer busVer; // 营业执照资质version
    private Integer gspGmpApId; // GSP/GMP证书apid
    private Integer gspGmpVer;  // GSP/GMP证书version
    private Integer operatingProductionApId;    // 药品经营/生产许可证apid
    private Integer operatingProductionVer; //药品经营/生产许可证version

    /**
     * 验证码
     */
    @NotNull(message = "请填写验证码")
    private String verifyCode;

    public Integer getVenProperties() {

        return venProperties;
    }

    public void setVenProperties(Integer venProperties) {

        this.venProperties = venProperties;
    }

    public String getVenName() {

        return venName;
    }

    public void setVenName(String venName) {

        this.venName = venName;
    }

    public String getBusinessNum() {

        return businessNum;
    }

    public void setBusinessNum(String businessNum) {

        this.businessNum = businessNum;
    }

    public String getEndDate() {

        return endDate;
    }

    public void setEndDate(String endDate) {

        this.endDate = endDate;
    }

    public String getGspEndDate() {
        return gspEndDate;
    }

    public void setGspEndDate(String gspEndDate) {
        this.gspEndDate = gspEndDate;
    }

    public String getProductEndDate() {
        return productEndDate;
    }

    public void setProductEndDate(String productEndDate) {
        this.productEndDate = productEndDate;
    }

    public String getLegalPerson() {

        return legalPerson;
    }

    public void setLegalPerson(String legalPerson) {

        this.legalPerson = legalPerson;
    }

    public String getLegalPersonNum() {

        return legalPersonNum;
    }

    public void setLegalPersonNum(String legalPersonNum) {

        this.legalPersonNum = legalPersonNum;
    }

    public String getBusinessPic() {

        return businessPic;
    }

    public void setBusinessPic(String businessPic) {

        this.businessPic = businessPic;
    }

    public String getIdcardPic() {

        return idcardPic;
    }

    public void setIdcardPic(String idcardPic) {

        this.idcardPic = idcardPic;
    }

    public String getIdcardBackPic() {

        return idcardBackPic;
    }

    public void setIdcardBackPic(String idcardBackPic) {

        this.idcardBackPic = idcardBackPic;
    }

    public String getFoodLicensePic() {

        return foodLicensePic;
    }

    public void setFoodLicensePic(String foodLicensePic) {

        this.foodLicensePic = foodLicensePic;
    }

    public Integer getComType() {

        return comType;
    }

    public void setComType(Integer comType) {

        this.comType = comType;
    }

    public String getBusinessType() {

        return businessType;
    }

    public void setBusinessType(String businessType) {

        this.businessType = businessType;
    }

    public String getBusinessTypeName() {

        return businessTypeName;
    }

    public void setBusinessTypeName(String businessTypeName) {

        this.businessTypeName = businessTypeName;
    }

    public Integer getProvinceId() {

        return provinceId;
    }

    public void setProvinceId(Integer provinceId) {

        this.provinceId = provinceId;
    }

    public Integer getCityId() {

        return cityId;
    }

    public void setCityId(Integer cityId) {

        this.cityId = cityId;
    }

    public String getVenAddr() {

        return venAddr;
    }

    public void setVenAddr(String venAddr) {

        this.venAddr = venAddr;
    }

    public List<Integer> getAreaId() {

        return areaId;
    }

    public void setAreaId(List<Integer> areaId) {

        this.areaId = areaId;
    }

    public Integer getPayType() {

        return payType;
    }

    public void setPayType(Integer payType) {

        this.payType = payType;
    }

    public String getShopName() {

        return shopName;
    }

    public void setShopName(String shopName) {

        this.shopName = shopName;
    }

    public String getUserName() {

        return userName;
    }

    public void setUserName(String userName) {

        this.userName = userName;
    }

    public String getUserPhone() {

        return userPhone;
    }

    public void setUserPhone(String userPhone) {

        this.userPhone = userPhone;
    }

    public String getUserEmail() {

        return userEmail;
    }

    public void setUserEmail(String userEmail) {

        this.userEmail = userEmail;
    }

    public Integer getVersion() {

        return version;
    }

    public void setVersion(Integer version) {

        this.version = version;
    }

    public Integer getIdcardApId() {

        return idcardApId;
    }

    public void setIdcardApId(Integer idcardApId) {

        this.idcardApId = idcardApId;
    }

    public Integer getIdcardVer() {

        return idcardVer;
    }

    public void setIdcardVer(Integer idcardVer) {

        this.idcardVer = idcardVer;
    }

    public Integer getBusApId() {

        return busApId;
    }

    public void setBusApId(Integer busApId) {

        this.busApId = busApId;
    }

    public Integer getBusVer() {

        return busVer;
    }

    public void setBusVer(Integer busVer) {

        this.busVer = busVer;
    }

    public Integer getGspGmpApId() {
        return gspGmpApId;
    }

    public void setGspGmpApId(Integer gspGmpApId) {
        this.gspGmpApId = gspGmpApId;
    }

    public Integer getGspGmpVer() {
        return gspGmpVer;
    }

    public void setGspGmpVer(Integer gspGmpVer) {
        this.gspGmpVer = gspGmpVer;
    }

    public Integer getOperatingProductionApId() {
        return operatingProductionApId;
    }

    public void setOperatingProductionApId(Integer operatingProductionApId) {
        this.operatingProductionApId = operatingProductionApId;
    }

    public Integer getOperatingProductionVer() {
        return operatingProductionVer;
    }

    public void setOperatingProductionVer(Integer operatingProductionVer) {
        this.operatingProductionVer = operatingProductionVer;
    }

    public String getVerifyCode() {

        return verifyCode;
    }

    public void setVerifyCode(String verifyCode) {

        this.verifyCode = verifyCode;
    }

    public boolean isAreaFlag() {

        return areaFlag;
    }

    public void setAreaFlag(boolean areaFlag) {

        this.areaFlag = areaFlag;
    }

    public String getGspGmpPic() {
        return gspGmpPic;
    }

    public void setGspGmpPic(String gspGmpPic) {
        this.gspGmpPic = gspGmpPic;
    }

    public String getOperatingProductionPic() {
        return operatingProductionPic;
    }

    public void setOperatingProductionPic(String operatingProductionPic) {
        this.operatingProductionPic = operatingProductionPic;
    }
}